Skip to content

Fix nested comment warning in RX GCC ports#550

Merged
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
francdoc:fix/rx-gcc-nested-comment-warning
Jun 16, 2026
Merged

Fix nested comment warning in RX GCC ports#550
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
francdoc:fix/rx-gcc-nested-comment-warning

Conversation

@francdoc

@francdoc francdoc commented Jun 9, 2026

Copy link
Copy Markdown

The RX GCC assembly port contains an unclosed C-style comment in tx_thread_context_save.S. As discussed in #397, .S files are passed through the C preprocessor before assembly, so the later C-style comment can trigger GCC warnings. The warning is small, but it adds avoidable noise to RX GCC builds.

This PR closes the affected comment block without changing assembly instructions or runtime behavior.

Validation

  • Ran git diff --check.
  • Verified RX GCC version: 8.3.0.202405-GNURX.
  • Ran RX GCC preprocessing and assembly compilation for the affected RXv1, RXv2, and RXv3 tx_thread_context_save.S files with -Wcomment -Werror=comment.
  • Built standalone ThreadX static libraries out-of-tree for RXv1, RXv2, and RXv3 using RX GCC 8.3.0.202405-GNURX with -misa=v1, -misa=v2, and -misa=v3.

The RX GCC preprocessing, assembly compilation, and standalone static-library builds completed successfully.

PR checklist

  • Updated function header with a short description and version number
  • Added test case for bug fix or new feature
  • Validated on real hardware

The RX GCC assembly port contains an unclosed C-style comment in tx_thread_context_save.S. Because .S files are passed through the C preprocessor before assembly, the nested comment can trigger GCC warnings.

Close the affected comment block without changing assembly instructions or runtime behavior.

Signed-off-by: FranCDoc <fchiesadoc@gmail.com>
@fdesbiens fdesbiens self-assigned this Jun 16, 2026
@fdesbiens fdesbiens moved this to In progress in ThreadX Roadmap Jun 16, 2026
@fdesbiens fdesbiens moved this from In progress to In review in ThreadX Roadmap Jun 16, 2026
@fdesbiens

Copy link
Copy Markdown
Contributor

Hi @francdoc.

Thank you for this contribution. I will merge to dev now, and it will ship in our Q3 2026 release (September).

@fdesbiens fdesbiens merged commit 859c098 into eclipse-threadx:dev Jun 16, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In review to Done in ThreadX Roadmap Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants